<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<h1>1.响应式数据</h1>
			<p>1.{{message}}</p>
			<p>2.{{message2}}</p>
		</div>
		<script>
			var data = {
				"message":"hello world!"
			}
			var app = new Vue({
				el:'#app',
				data: data
			})
		</script>
	</body>
</html>

<!-- 在console中，
修改data的值
data.message = "xxx"  # 触发响应，更新
data.message2 = "xxx2"
data.message = "xxx1"  #触发响应，更新
 -->